<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="inc/taglibs.jsp" %>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <%@ include file="inc/meta.jsp" %>
    <meta name="description" content="">
    <meta name="author" content="">
    <title>用户详情</title>
    <%@ include file="inc/css.jsp" %>
</head>
<body>

<div id="posts" class="wrapper">

    <%@ include file="inc/nav.jsp" %>

    <div id="page-wrapper">
        <div class="row">
            <div class="col-lg-12">
                <h1 class="page-header">用户列表</h1>
                <h4 style="margin-left: 10px;">——用户详情</h4>
            </div>
        </div>

        <div class="row">
            <div class="col-lg-12">
                <div class="panel panel-default">
                    <!-- /.panel-heading -->
                    <div class="panel-body">
                        <form class="form-horizontal">

                            <c:if test="${appUser.avatar != '' && appUser.avatar != null}">
                                <div style="position: absolute; top: 45px; right: 60px;">
                                    <img src="${appUser.avatar}" height="250px" width="250px" style="border: 1px solid black"/>
                                </div>
                            </c:if>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">账号:</label>

                                <div class="col-sm-4" style="padding-top: 6.5px;">
                                    <c:if test="${appUser.mobile != null}">
                                        ${appUser.mobile}
                                    </c:if>
                                    <c:if test="${appUser.mobile == null}">
                                        <c:if test="${appUser.type == 1}">QQ登录</c:if>
                                        <c:if test="${appUser.type == 2}">微信登录</c:if>
                                        <c:if test="${appUser.type == 3}">微博登录</c:if>
                                    </c:if>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">昵称:</label>

                                <div class="col-sm-4" style="padding-top: 6.5px;">
                                    ${appUser.nickName}
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">性别:</label>

                                <div class="col-sm-4" style="padding-top: 6.5px;">
                                    <c:if test="${appUser.sex == 0}">男</c:if>
                                    <c:if test="${appUser.sex == 1}">女</c:if>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">状态:</label>

                                <div class="col-sm-4" style="padding-top: 6.5px;">
                                    <c:if test="${appUser.sealStatus == 0}">启用</c:if>
                                    <c:if test="${appUser.sealStatus == 1}">禁用</c:if>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">注册时间:</label>

                                <div class="col-sm-4" style="padding-top: 6.5px;">
                                    ${createTime}
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">年龄:</label>

                                <div class="col-sm-4" style="padding-top: 6.5px;">
                                    ${appUser.age}
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">所在地:</label>

                                <div class="col-sm-4" style="padding-top: 6.5px;">
                                    <c:if test="${appUser.region != null}">
                                        ${appUser.region.city.province.name}${appUser.region.city.name}${appUser.region.name}
                                    </c:if>
                                    <c:if test="${appUser.region == null}">
                                        暂无
                                    </c:if>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">邮箱:</label>

                                <div class="col-sm-4" style="padding-top: 6.5px;">
                                    <c:if test="${appUser.email != ''}">
                                        ${appUser.email}
                                    </c:if>
                                    <c:if test="${appUser.email == ''}">
                                        暂无
                                    </c:if>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">支付宝:</label>

                                <div class="col-sm-4" style="padding-top: 6.5px;">
                                    <c:if test="${appUser.aliPayName != null}">
                                        ${appUser.aliPayAccount}（${appUser.aliPayName}）
                                    </c:if>
                                    <c:if test="${appUser.aliPayName == null}">
                                        暂无
                                    </c:if>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">账户余额:</label>

                                <div class="col-sm-4" style="padding-top: 6.5px;">
                                    ￥${appUser.money}
                                </div>
                            </div>

                            <div class="form-group">
                                <div class="col-sm-12" style="text-align: center">
                                    <a href="backend/appUser/index" class="btn btn-primary" role="button">返回</a>
                                </div>
                            </div>
                        </form>
                    </div>
                    <!-- /.panel-body -->

                </div>
            </div>
        </div>

        <c:if test="${userResume != null}">
            <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-info">
                        <!-- /.panel-heading -->
                        <div class="panel-heading">
                            简历详情
                        </div>
                        <div class="panel-body">
                            <form class="form-horizontal">

                                <c:if test="${userResume.avatar != '' && userResume.avatar != null}">
                                    <div style="position: absolute; top: 100px; left: 80px;">
                                        <img src="${userResume.avatar}" height="150px" width="150px" style="border: 1px solid black"/>
                                    </div>
                                </c:if>

                                <div style="position: relative; top: 200px; left: 80px;">
                                    <span style="font-size: x-large">${userResume.userName}</span>
                                    <br/>
                                        ${userResume.age}岁
                                    <c:if test="${userResume.city != null}">
                                        /${userResume.city.name}
                                    </c:if>
                                    <c:if test="${appUser.sex == 0}">
                                        /男
                                    </c:if>
                                    <c:if test="${appUser.sex == 1}">
                                        /女
                                    </c:if>
                                    <c:if test="${userResume.nationInfo != ''}">
                                        /${userResume.nationInfo}
                                    </c:if>
                                </div>

                                <div class="form-group" style="margin-top: -50px;">
                                    <label class="col-sm-3 control-label">户籍:</label>

                                    <div class="col-sm-4" style="padding-top: 6.5px;">
                                            ${userResume.region.name}
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-3 control-label">毕业院校:</label>

                                    <div class="col-sm-4" style="padding-top: 6.5px;">
                                            ${userResume.schoolName}
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-3 control-label">学历:</label>

                                    <div class="col-sm-4" style="padding-top: 6.5px;">
                                            ${userResume.educationInfo}
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-3 control-label">专业:</label>

                                    <div class="col-sm-4" style="padding-top: 6.5px;">
                                            ${userResume.disciplineInfo}
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-3 control-label">联系电话:</label>

                                    <div class="col-sm-4" style="padding-top: 6.5px;">
                                            ${userResume.mobile}
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-3 control-label">E-mail:</label>

                                    <div class="col-sm-4" style="padding-top: 6.5px;">
                                            ${userResume.email}
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-3 control-label">在校情况:</label>

                                    <div class="col-sm-4" style="padding-top: 6.5px;">
                                            ${userResume.situationInfo}
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-3 control-label">个人荣誉:</label>

                                    <div class="col-sm-4" style="padding-top: 6.5px;">
                                            ${userResume.honorInfo}
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-3 control-label">工作经历:</label>

                                    <div class="col-sm-4" style="padding-top: 6.5px;">
                                            ${userResume.skillInfo}
                                    </div>
                                </div>
                            </form>
                        </div>
                        <!-- /.panel-body -->
                    </div>
                </div>
            </div>
        </c:if>


    </div>
    <!-- /#page-wrapper -->

</div>
<!-- /#wrapper -->

<%@ include file="inc/footer.jsp" %>

</body>

</html>